home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / EGYPTW.DIR / 01719_Script_Careers < prev    next >
Text File  |  1995-09-13  |  12KB  |  387 lines

  1. global gQuest, gBeenClicked, gHouseIsOpen
  2.  
  3. on ECareersRollovers1
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(6) then
  7.       repeat while rollover(6)
  8.         EgyptCursor
  9.         if gHouseIsOpen = 1 then
  10.           ReplaceTheTemple
  11.         else
  12.           set the locH of sprite 28 to 440
  13.           set the locV of sprite 28 to 167
  14.           updatestage
  15.           if the mousedown then
  16.             set GBeenClicked = 1
  17.           else
  18.             if gBeenClicked = 1 then
  19.               AnimateLoopToFro 6, 1136, 4, 0, 2
  20.             end if
  21.           end if
  22.         end if
  23.       end repeat
  24.       set the locH of sprite 28 to 940
  25.       updatestage
  26.     else
  27.       if rollover(10) or rollover(11) or rollover(12) then
  28.         ArrowCursor
  29.         repeat while rollover(10) or rollover(11) or rollover(12)
  30.           if gHouseIsOpen = 1 then
  31.             ReplaceTheTemple
  32.           else
  33.             set the locH of sprite 39 to 492
  34.             set the locV of sprite 39 to 203
  35.             updatestage
  36.           end if
  37.         end repeat
  38.         set the locH of sprite 39 to 992
  39.         updatestage
  40.       else
  41.         if rollover(7) then
  42.           EgyptCursor
  43.           repeat while rollover(7)
  44.             if gHouseIsOpen = 1 then
  45.               ReplaceTheTemple
  46.             else
  47.               set the locH of sprite 14 to 440
  48.               set the locV of sprite 14 to 356
  49.               updatestage
  50.               if the mousedown then
  51.                 set GBeenClicked = 1
  52.               else
  53.                 if gBeenClicked = 1 then
  54.                   AnimateLoopToFro 7, 1141, 4, 0, 2
  55.                 end if
  56.               end if
  57.             end if
  58.           end repeat
  59.           set the locH of sprite 14 to 940
  60.           updatestage
  61.         else
  62.           if rollover(8) then
  63.             EgyptCursor
  64.             repeat while rollover(8)
  65.               if gHouseIsOpen = 1 then
  66.                 ReplaceTheTemple
  67.               else
  68.                 set the locH of sprite 15 to 304
  69.                 set the locV of sprite 15 to 268
  70.                 updatestage
  71.                 if the mousedown then
  72.                   set GBeenClicked = 1
  73.                 else
  74.                   if gBeenClicked = 1 then
  75.                     AnimateLoopToFroSlow 8, 1146, 4, "SE300301.AIF", 1
  76.                   end if
  77.                 end if
  78.               end if
  79.             end repeat
  80.             set the locH of sprite 15 to 904
  81.             updatestage
  82.           else
  83.             if rollover(9) then
  84.               repeat while rollover(9)
  85.                 EgyptCursor
  86.                 if the mousedown then
  87.                   set GBeenClicked = 1
  88.                 else
  89.                   if gBeenClicked = 1 then
  90.                     RemoveTheTemple
  91.                   end if
  92.                 end if
  93.               end repeat
  94.               ArrowCursor
  95.             else
  96.               if rollover(13) then
  97.                 ArrowCursor
  98.                 repeat while rollover(13)
  99.                   set the locH of sprite 43 to 313
  100.                   set the locV of sprite 43 to 121
  101.                   updatestage
  102.                 end repeat
  103.                 set the locH of sprite 43 to 913
  104.                 updatestage
  105.               else
  106.                 if rollover(17) then
  107.                   ArrowCursor
  108.                   repeat while rollover(17)
  109.                     if gHouseIsOpen = 1 then
  110.                       set the locH of sprite 18 to 310
  111.                       set the locV of sprite 18 to 221
  112.                       updatestage
  113.                     end if
  114.                   end repeat
  115.                   set the locH of sprite 18 to 910
  116.                   updatestage
  117.                 else
  118.                   if rollover(19) then
  119.                     ArrowCursor
  120.                     repeat while rollover(19)
  121.                       if gHouseIsOpen = 1 then
  122.                         set the locH of sprite 20 to 415
  123.                         set the locV of sprite 20 to 205
  124.                         updatestage
  125.                       end if
  126.                     end repeat
  127.                     set the locH of sprite 20 to 915
  128.                     updatestage
  129.                   else
  130.                     if rollover(22) then
  131.                       ArrowCursor
  132.                       repeat while rollover(22)
  133.                         if gHouseIsOpen = 1 then
  134.                           set the locH of sprite 21 to 555
  135.                           set the locV of sprite 21 to 282
  136.                           updatestage
  137.                         end if
  138.                       end repeat
  139.                       set the locH of sprite 21 to 955
  140.                       updatestage
  141.                     else
  142.                       if rollover(40) then
  143.                         HandCursor
  144.                       else
  145.                         if rollover(41) then
  146.                           HandCursor
  147.                         else
  148.                           if rollover(42) then
  149.                             HandCursor
  150.                           else
  151.                             ArrowCursor
  152.                           end if
  153.                         end if
  154.                       end if
  155.                     end if
  156.                   end if
  157.                 end if
  158.               end if
  159.             end if
  160.           end if
  161.         end if
  162.       end if
  163.     end if
  164.   end if
  165.   RandomQuestion(gQuest)
  166. end
  167.  
  168. on ECareersRollovers2
  169.   set gBeenClicked = 0
  170.   if (not(CheckClickedStatus(gQuest))) then
  171.     if rollover(8) then
  172.       repeat while rollover(8)
  173.         EgyptCursor
  174.         set the locH of sprite 10 to 366
  175.         set the locV of sprite 10 to 315
  176.         updatestage
  177.         if the mousedown then
  178.           set GBeenClicked = 1
  179.         else
  180.           if gBeenClicked = 1 then
  181.             repeat while gBeenClicked = 1
  182.               AnimateLoopToFro 8, 1156, 4, 0, 1
  183.             end repeat
  184.           end if
  185.         end if
  186.       end repeat
  187.       set the locH of sprite 10 to 999
  188.       updatestage
  189.     else
  190.       if rollover(5) then
  191.         repeat while rollover(5)
  192.           EgyptCursor
  193.           puppetsprite 16, true
  194.           set the locH of sprite 16 to 344
  195.           updatestage
  196.           if the mousedown then
  197.             set GBeenClicked = 1
  198.           else
  199.             if gBeenClicked = 1 then
  200.               set the locH of sprite 16 to 925
  201.               updatestage
  202.               ArrowShoot
  203.               AnimateLoop 5, 1218, 7, "SE301101.AIFF", 1
  204.             end if
  205.           end if
  206.         end repeat
  207.         set the locH of sprite 16 to 925
  208.         puppetsprite 16, false
  209.         updatestage
  210.       else
  211.         if rollover(11) then
  212.           ArrowCursor
  213.           repeat while rollover(11)
  214.             set the locH of sprite 12 to 349
  215.             set the locV of sprite 12 to 157
  216.             updatestage
  217.           end repeat
  218.           set the locH of sprite 12 to 949
  219.           updatestage
  220.         else
  221.           if rollover(13) then
  222.             repeat while rollover(13)
  223.               EgyptCursor
  224.               set the locH of sprite 14 to 390
  225.               set the locV of sprite 14 to 327
  226.               updatestage
  227.               if the mousedown then
  228.                 set GBeenClicked = 1
  229.               else
  230.                 if gBeenClicked = 1 then
  231.                   set the locH of sprite 14 to 990
  232.                   updatestage
  233.                   repeat while gBeenClicked = 1
  234.                     AnimateLoopToFro 3, 1225, 4, 0, 2
  235.                   end repeat
  236.                 end if
  237.               end if
  238.             end repeat
  239.             set the locH of sprite 14 to 990
  240.             updatestage
  241.           else
  242.             if rollover(19) then
  243.               ArrowCursor
  244.               repeat while rollover(19)
  245.                 set the locH of sprite 20 to 384
  246.                 set the locV of sprite 20 to 228
  247.                 updatestage
  248.               end repeat
  249.               set the locH of sprite 20 to 999
  250.               updatestage
  251.             else
  252.               if rollover(21) then
  253.                 repeat while rollover(21)
  254.                   EgyptCursor
  255.                   set the locH of sprite 22 to 486
  256.                   set the locV of sprite 22 to 333
  257.                   updatestage
  258.                   if the mousedown then
  259.                     set GBeenClicked = 1
  260.                   else
  261.                     if gBeenClicked = 1 then
  262.                       set the locH of sprite 22 to 986
  263.                       updatestage
  264.                       repeat while gBeenClicked = 1
  265.                         AnimateLoopToFro 3, 1225, 4, 0, 2
  266.                       end repeat
  267.                     end if
  268.                   end if
  269.                 end repeat
  270.                 set the locH of sprite 22 to 999
  271.                 updatestage
  272.               else
  273.                 if rollover(9) then
  274.                   repeat while rollover(9)
  275.                     EgyptCursor
  276.                     set the locH of sprite 28 to 429
  277.                     set the locV of sprite 28 to 332
  278.                     updatestage
  279.                     if the mousedown then
  280.                       set GBeenClicked = 1
  281.                     else
  282.                       if gBeenClicked = 1 then
  283.                         set the locH of sprite 28 to 929
  284.                         updatestage
  285.                         repeat while gBeenClicked = 1
  286.                           AnimateLoopToFro 3, 1225, 4, 0, 2
  287.                         end repeat
  288.                       end if
  289.                     end if
  290.                   end repeat
  291.                   set the locH of sprite 28 to 999
  292.                   updatestage
  293.                 else
  294.                   if rollover(40) then
  295.                     repeat while rollover(40)
  296.                       EgyptCursor
  297.                       set the locH of sprite 43 to 486
  298.                       set the locV of sprite 43 to 123
  299.                       updatestage
  300.                       if the mousedown then
  301.                         set GBeenClicked = 1
  302.                       else
  303.                         if gBeenClicked = 1 then
  304.                           repeat while gBeenClicked = 1
  305.                             AnimateLoopToFro 7, 1167, 4, 0, 2
  306.                           end repeat
  307.                         end if
  308.                       end if
  309.                     end repeat
  310.                     set the locH of sprite 43 to 999
  311.                     updatestage
  312.                   else
  313.                     if rollover(39) then
  314.                       HandCursor
  315.                     else
  316.                       ArrowCursor
  317.                     end if
  318.                   end if
  319.                 end if
  320.               end if
  321.             end if
  322.           end if
  323.         end if
  324.       end if
  325.     end if
  326.   end if
  327.   RandomQuestion(gQuest)
  328. end
  329.  
  330. on RemoveTheTemple
  331.   puppetsound "SE300500.AIF"
  332.   updatestage
  333.   wait .8
  334.   set gHouseIsOpen = 1
  335.   puppetsprite 9, true
  336.   puppetsprite 16, true
  337.   set the locH of sprite 9 to 900
  338.   set the locH of sprite 16 to 164
  339.   set the locV of sprite 16 to 245
  340.   updatestage
  341. end
  342.  
  343. on ReplaceTheTemple
  344.   set gHouseIsOpen = 0
  345.   set the locH of sprite 9 to 393
  346.   set the locV of sprite 9 to 304
  347.   set the locH of sprite 16 to -264
  348.   puppetsprite 9, false
  349.   puppetsprite 16, false
  350.   updatestage
  351. end
  352.  
  353. on ArrowShoot
  354.   puppetsound "SE301100.AIF"
  355.   puppetsprite 6, true
  356.   set the locH of sprite 6 to -200
  357.   updatestage
  358.   Wait .2
  359.   puppetsprite 15, true
  360.   set the locH of sprite 15 to 178
  361.   set the locV of sprite 15 to 329
  362.   updatestage
  363.   wait .2
  364.   set the locH of sprite 15 to -478
  365.   set the locH of sprite 6 to 75
  366.   set the locV of sprite 6 to 296
  367.   updatestage
  368.   puppetsprite 6, false
  369.   puppetsprite 15, false
  370.   wait .8
  371. end
  372.  
  373. on ResetTheTemple
  374.   if gHouseIsOpen = 1 then
  375.     set the locH of sprite 16 to -264
  376.     puppetsprite 16, false
  377.     updatestage
  378.   else
  379.     puppetsprite 9, true
  380.     set the locH of sprite 9 to 900
  381.     updatestage
  382.     set gHouseIsOpen = 1
  383.   end if
  384. end
  385.  
  386.  
  387.